<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://unpkg.com/vue/dist/vue.js"></script>
    <title>v-html 指令</title>
</head>

<body>
    <div id="app" v-html='MenuBody'>
        <div></div>
    </div>
    <script>
        var a = new Vue({
            el: '#app',
            data: {
                MenuBody: '<p>这里是菜单的内容</p>'
            }
        })
    </script>
</body>

</html>